diff options
| author | Michael Williamson <mike@zwobble.org> | 2023-12-15 14:41:14 +0000 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2023-12-15 14:41:14 +0000 |
| commit | a2d7af1fdcc64f117d5db91761cb2610854e9e60 (patch) | |
| tree | 6efda92ea2b7802b1a5b93fd980fb5bd05c8aa9c /snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenSwitchTests]/[method:canGenerateCodeForSwitchWithSingleResult(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected | |
| parent | 3816d24d46d9ff779e9bf837182c611d99809d5d (diff) | |
Extract code gen module for Patio ints
Diffstat (limited to 'snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenSwitchTests]/[method:canGenerateCodeForSwitchWithSingleResult(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected')
1 files changed, 12 insertions, 12 deletions
diff --git a/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenSwitchTests]/[method:canGenerateCodeForSwitchWithSingleResult(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected b/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenSwitchTests]/[method:canGenerateCodeForSwitchWithSingleResult(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected index b6e1a58a..0ca0fb87 100644 --- a/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenSwitchTests]/[method:canGenerateCodeForSwitchWithSingleResult(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected +++ b/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenSwitchTests]/[method:canGenerateCodeForSwitchWithSingleResult(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected @@ -5,12 +5,12 @@ Locals: * (val "tmp__0" int) * (val "switchTag__0" int) * (val "structValuePointer__0" data-ptr) + * (val "int__0" int) + * (val "int__1" int) * (val "tmp__1" int) + * (val "int__2" int) + * (val "int__3" int) * (val "tmp__2" int) - * (val "tmp__3" int) - * (val "tmp__4" int) - * (val "tmp__5" int) - * (val "tmp__6" int) Instructions: @@ -34,11 +34,11 @@ Instructions: ( block ( - (local-store (local "tmp__1") (int 1)) - (local-store (local "tmp__2") (int 2)) - (int-add (local "tmp__3") (local "tmp__1") (local "tmp__2")) + (local-store (local "int__0") (int 1)) + (local-store (local "int__1") (int 2)) + (int-add (local "tmp__1") (local "int__0") (local "int__1")) ) - results=((local "tmp__3")) + results=((local "tmp__1")) ) ) ( @@ -47,11 +47,11 @@ Instructions: ( block ( - (local-store (local "tmp__4") (int 101)) - (local-store (local "tmp__5") (int 102)) - (int-add (local "tmp__6") (local "tmp__4") (local "tmp__5")) + (local-store (local "int__2") (int 101)) + (local-store (local "int__3") (int 102)) + (int-add (local "tmp__2") (local "int__2") (local "int__3")) ) - results=((local "tmp__6")) + results=((local "tmp__2")) ) ) ) |
